package com.anis.jpa.medical.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * The persistent class for the radioreport database table.
 * 
 */
@Entity
@Table(name = "templates")
@NamedQuery(name = "Templates.findAll", query = "SELECT r FROM Templates r")
public class Templates implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	@Column(unique = true, nullable = false, length = 60)
	private long idTemplate;

	@Column(name = "TEMPLATENAME")
	private String tempname;

	@Lob
	private byte[] medicalReportTemplate;

	@Lob
	private byte[] radioReportTemplate;

	@Lob
	private byte[] medicalOrdnanceTemplate;

	public String getTempname() {
		return tempname;
	}

	public void setTempname(String tempname) {
		this.tempname = tempname;
	}

	public byte[] getMedicalReportTemplate() {
		return medicalReportTemplate;
	}

	public void setMedicalReportTemplate(byte[] medicalReportTemplate) {
		this.medicalReportTemplate = medicalReportTemplate;
	}

	public byte[] getRadioReportTemplate() {
		return radioReportTemplate;
	}

	public void setRadioReportTemplate(byte[] radioReportTemplate) {
		this.radioReportTemplate = radioReportTemplate;
	}

	public byte[] getMedicalOrdnanceTemplate() {
		return medicalOrdnanceTemplate;
	}

	public void setMedicalOrdnanceTemplate(byte[] medicalOrdnanceTemplate) {
		this.medicalOrdnanceTemplate = medicalOrdnanceTemplate;
	}
	
	
	
	

}